package org.brownflat.lighthouse.ci.hudson;

import org.brownflat.lighthouse.ci.HTTPRequest;

public class HudsonLatestBuildsRequest implements HTTPRequest {

    private String view;

    public HudsonLatestBuildsRequest(String view) {
        this.view = view;
    }

    public HudsonLatestBuildsRequest() {
    }

	@Override
	public String getURI() {
        if(view != null && view.length() > 0) {
            return "view/" + view + "/rssLatest";
        }
        return "rssLatest";
	}
}
